<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let targetData = {
        title: 'aaa'
      }

      // let data = {}
      // for (let key in targetData) {
      //   Object.defineProperty(data, key, {
      //     get() {
      //       return targetData[key]
      //     },
      //     set(v) {
      //       targetData[key] = v
      //       return true
      //     }
      //   })
      // }
      // data.aaa

      let data = new Proxy(targetData,{})
      data.aaa = 'aa'


    </script>
  </body>
</html>
